package com.example.rentalcar.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;


import java.util.Date;

/**
 * 保险清单对象 insurance
 * 
 * @author ruoyi
 * @date 2024-01-03
 */
@TableName("insurance")
public class Insurance
{


    /** 保单id */
    private Long proId;

    /** 车辆id */

    private Long carId;

    /** 提交日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date date;

    /** 保险详情 */

    private String content;

    /** 车主id */

    private Long driverId;


    private Long userId;

    public void setProId(Long proId) 
    {
        this.proId = proId;
    }

    public Long getProId() 
    {
        return proId;
    }
    public void setCarId(Long carId) 
    {
        this.carId = carId;
    }

    public Long getCarId() 
    {
        return carId;
    }
    public void setDate(Date date) 
    {
        this.date = date;
    }

    public Date getDate() 
    {
        return date;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setDriverId(Long driverId) 
    {
        this.driverId = driverId;
    }

    public Long getDriverId() 
    {
        return driverId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public Insurance() {
    }

    @Override
    public String toString() {
        return "Insurance{" +
                "proId=" + proId +
                ", carId=" + carId +
                ", date=" + date +
                ", content='" + content + '\'' +
                ", driverId=" + driverId +
                ", userId=" + userId +
                '}';
    }
}
